#ifndef MOZHU_LOG
#define MOZHU_LOG

#include <vector>
#include <string>
#include <mutex>
#include <fstream>
#include "../time/time.h"

struct logdata
{
	int type;
	m_time timestamp;
	std::string info;
};             

namespace mozhu
{
class log 
{
public:
	static log* Get();
	static void writelog(int type, std::string info);
	static std::vector<logdata> getlog();
	static void loaddatabase(std::string location);
	static void unloaddatabase();
private:
	static log* m_instance;
	std::string databaselocation;
	std::vector<logdata> data;
};
}



#endif